package com.example.demo.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.common.entity.pojo.BaseEntityPoJo;
import com.example.demo.constant.Constant;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * BaseService.
 *
 * @author Mei Ruoxiao
 * @since 2020/9/3
 */
public interface BaseService<T extends BaseEntityPoJo> extends IService<T> {
    /**
     * create
     *
     * @param t entity
     * @return t
     */
    T create(T t);

    /**
     * batch create
     *
     * @param ts list
     * @return list
     */
    List<T> createBatch(List<T> ts);

    /**
     * batch create companyId
     * @name lzy
     */
    List<T> createBatch(List<T> ts,Long companyId);
}
